﻿using System;

namespace ARchGL.Platform.Dto
{
    /// <summary>
    /// 最大、最小、平均值 JSON 数据
    /// </summary>
    [Serializable]
    public class ReportAvg
    {
        public ReportAvg() { }

        public ReportAvg(decimal min, decimal max, decimal avg)
        {
            Min = Math.Round(min, 6);
            Max = Math.Round(max, 6);
            Avg = Math.Round(avg, 6);
        }

        /// <summary>
        /// 最小值
        /// </summary>
        public decimal Min { get; set; }
        /// <summary>
        /// 最大值
        /// </summary>
        public decimal Max { get; set; }
        /// <summary>
        /// 平均值
        /// </summary>
        public decimal Avg { get; set; }
    }
}
